package com.vue.admin.service.common.mybatis.mapper;
import com.vue.admin.service.common.mybatis.provider.BaseDefUpdateProvider;
import org.apache.ibatis.annotations.UpdateProvider;
import tk.mybatis.mapper.annotation.RegisterMapper;

import java.util.List;

/**
 * @program: tk-robot-service
 * @description:
 * @author: zhangyangyang
 * @create: 2020-01-07 10:05
 **/
@RegisterMapper
public interface BaseDefUpdateListMapper<T> {
    @UpdateProvider(
            type = BaseDefUpdateProvider.class,
            method = "dynamicSQL"
    )

    /**
     * 批量更新
     * @param recordList
     * @return
     */
    int updateListByPrimaryKeySelective(List<T> recordList);
}
